QuickOPC User's Guide and Reference
CurrentState Property (UAMultiStateDiscreteNode<TValue,TAttribute>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataAccess Namespace > UAMultiStateDiscreteNode<TValue,TAttribute> Class : CurrentState Property
The current value of the variable (node), expressed as a string. The current value of the variable (node), expressed as a string.
Syntax
'Declaration
 
<DefaultValueAttribute("")>
Public Overrides ReadOnly Property CurrentState As String
'Usage
 
Dim instance As UAMultiStateDiscreteNode(Of TValue,TAttribute)
Dim value As String
 
value = instance.CurrentState
[DefaultValue("")]
public override string CurrentState {get;}
[DefaultValue("")]
public:
property String^ CurrentState {
   String^ get() override;
}
Remarks

If the current value is a null reference, this property returns an empty string.

If the current value is not null, but is invalid in some other way, this property returns a decimal string representation of the current value.

If the current value is valid, this property returns a corresponding string from the EnumStrings property. If this string is empty, and the SubstituteEmptyStates is true, the string is substituted by formatting the current value using a format string taken from the SubstituteStateFormat property.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also